package com.codi.bus.core.dao.impl;

import com.codi.base.dao.v2.GeneratedBaseDaoImpl;
import com.codi.bus.core.dao.PortfolioAssetsDao;
import com.codi.bus.core.dao.PortfolioFundDao;
import com.codi.bus.core.domain.PortfolioAssets;
import com.codi.bus.core.domain.PortfolioFund;
import org.springframework.stereotype.Repository;

/**
 * Created by asus on 2017/12/6.
 */
@Repository("portfolioFundDao")
public class PortfolioFundDaoImpl extends GeneratedBaseDaoImpl<PortfolioFund> implements PortfolioFundDao {
    @Override
    public Long insertByCode( PortfolioFund portfolioFund) {
        super.insert(this.generateStatement("insert"), portfolioFund);
        return portfolioFund.getPfPortfolioFundId();
    }

}
